import request from "../utils/request";


export async function getSQLData(data) {
  return request({
    method: "post",
    url: `/dataSql/data`,
    data
  });
}

export async function getDataSqlList(params) {
  return request({
    method: "get",
    url: `/dataSql/list`,
    params
  });
}

export async function getDataSQLAllList(params) {
  return request({
    method: "get",
    url: `/dataSQL/all`,
    params
  });
}

export async function addDataSql(data) {
  return request({
    method: "post",
    url: `/dataSql/add`,
    data
  });
}

export async function editDataSql(data) {
  return request({
    method: "put",
    url: `/dataSql/edit`,
    data
  });
}

export async function delDataSql(data) {
  return request({
    method: "delete",
    url: `/dataSql/del`,
    data
  });
}

export async function testDataSql(data) {
  return request({
    method: "post",
    url: `/dataSql/check`,
    data
  });
}



